-
Notifications
You must be signed in to change notification settings - Fork 335
Add TraceDataCollectorDirectoryPath parameter to VSTestTask #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TraceDataCollectorDirectoryPath parameter to VSTestTask #1601
Conversation
} | ||
|
||
[TestMethod] | ||
public void CreateArgumentShouldAddTraceCollectorDirectoryPathAsTestAdapterIfSettingsGiven() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Check if we can add another test where VSTestTraceDataCollectorDirectoryPath is empty, so it is not set if if runsettings is present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
allArgs.Add("--collect:" + ArgumentEscaper.HandleEscapeSequenceInArgForProcessStart(arg)); | ||
} | ||
} | ||
|
||
if (isCollectCodeCoverageEnabled || isRunSettingsEnabled) | ||
{ | ||
// Pass TraceDataCollector path to vstest.console as TestAdapterPath if --collect "Code Coverage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here trade off is b/w always parsing runsettings(which we don't want to do), vs always adding the path of TraceDataCollector dir if it is present, & runsettings is used.
I agree with latter. #ByDesign
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…m/smadala/vstest into add-trace-datacollector-parameter
Description
Value for TraceDataCollectorDirectoryPath will be passed from targets present in Microsoft.CodeCoverage package. More details
Related issue
#981